package javaExer.草稿;

public class x02 {

    public static void main(String[] args) {

        test001 t1 = new test001();
        test002 t2 = new test002();
        t1.age=100;
        t2.t1(t1);
        System.out.println(t1.age);
    }
}

class test001{
    int age;
}

class test002{

    public void t1(test001 t){
        t.age=1000;
    }
}
